package com.dykj.fireFighting.api.base.effecttimesetting.service;

import com.dykj.fireFighting.api.base.effecttimesetting.entity.EffectiveTimeSetting;
import com.dykj.fireFighting.api.base.effecttimesetting.vo.EffectiveTimeSettingVo;
import com.dykj.fireFighting.common.core.dto.CommonDto;
import com.dykj.fireFighting.common.core.service.IBaseService;
import com.dykj.fireFighting.common.core.vo.PageVo;

import java.util.Date;
import java.util.HashMap;


/**
 * 有效时间设置
 *
 * @Author zly
 * @Date 2021-08-12 14:35:29
 */
public interface IEffectiveTimeSettingService extends IBaseService<EffectiveTimeSetting> {


    /**
     * 有效时间判断
     *
     * @param sourceTime 时间
     * @param type       类型
     * @return
     */
    EffectiveTimeSettingVo isEffective(Date sourceTime, String type,String enterpriseId);

    PageVo<EffectiveTimeSetting> queryList(CommonDto commonDto, HashMap<String, Object> params);

    Long selectByUnintId(String enterpriseId);
}

